-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix error on delete in ChunkingV2Plugin #38100
Fix error on delete in ChunkingV2Plugin #38100
Conversation
Signed-off-by: Lorenzo Tanganelli <[email protected]>
34cdbed
to
d920e65
Compare
return true; | ||
} | ||
|
||
[$storage, $storagePath] = $this->getUploadStorage($this->uploadPath); |
Check notice
Code scanning / Psalm
PossiblyNullArgument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test if (!$this->uploadFolder instanceof UploadFolder) {
from before is missing, leading to this psalm warning. Please add it back.
I cannot judge the rest I do not understand the change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's evaluated in checkPrerequisites()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes correct, is evaluated in checkPrerequisites()
function, as the same of other functions
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
/backport to stable26 |
Summary
This PR fix the error on "delete" call when is used and storage class that is not IChunkedFileWrite::class.
Implementation is the same of other "before" method
TODO
Checklist